using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Runtime.InteropServices.JavaScript.JSType;

namespace RBAC.Domain.PurchasingManagement.PurchaseOrders
{
    /// <summary>
    /// 采购订单物料信息
    /// </summary>
    [Table("PurchasingMaterialInfo")]
    public  class PurchasingMaterialInfo
    {
        /// <summary>
        /// 关联采购订单ID（外键）
        /// </summary>
        public long PurchaseOrderId { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 单据编号
        /// </summary>
        public string DocumentaryNumber { get; set; } = null;

        /// <summary>
        /// 计划单号
        /// </summary>
        public string PlannedOrderNumber { get; set; } = null;


        /// <summary>
        /// 物料编码
        /// </summary>
        public string materialCode { get; set; }= null;

        /// <summary>
        /// 物料名称
        /// </summary>
        public string materialName { get; set; }   = null;

        /// <summary>
        /// 型号规格
        /// </summary>
        public string modelSpec { get; set; }

        /// <summary>
        /// 主计量单位
        /// </summary>
        public string mainUnit { get; set; }

        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime demandDate { get; set; }

        /// <summary>
        /// 采购数量
        /// </summary>
        public int qty { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal unitPrice { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal amount { get; set; }

        /// <summary>
        /// 到货数量
        /// </summary>
        public int arrivalQty { get; set; }

        /// <summary>
        /// 采购说明
        /// </summary>
        public string PurchasingInstructions { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }

    }
}
